package com.example.figurehecheng.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 餐厅表
 * </p>
 *
 * @author author
 * @since 2025-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("restaurant")
@ApiModel(value="Restaurant对象", description="餐厅表")
public class RestaurantVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "餐厅ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "餐厅名称")
    @TableField("name")
    private String name;

    @NotBlank(message = "餐厅特色描述不能为空")
    @ApiModelProperty(value = "餐厅特色描述")
    private String description;

    @ApiModelProperty(value = "评分")
    @TableField("rating")
    private BigDecimal rating;

    @ApiModelProperty(value = "评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty(value = "人均消费(元)")
    @TableField("average_price")
    private Integer averagePrice;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "营业时间")
    @TableField("business_hours")
    private String businessHours;

    @ApiModelProperty(value = "状态(0:休息 1:营业)")
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "商家id")
    @TableField("mid")
    private Integer mid;

    @ApiModelProperty(value = "图片URL列表")
    private List<String> images;

    @ApiModelProperty(value = "封面图片")
    private String coverImage;

    @ApiModelProperty(value = "距离当前位置的距离(公里)")
    private Double distance;
}
